SET NAMES utf8mb4;
BEGIN;

-- 创建字典
INSERT INTO `system_dict` (`code`, `name`, `scope`, `remark`, `created_by`, `created_at`, `updated_by`, `updated_at`, `deleted`)
VALUES ('MATERIAL_VALUE_TYPES', '素材值类型', 'BACK_END', '', 1, CURRENT_TIMESTAMP, NULL, NULL, 0);

-- 创建字典数据
INSERT INTO `system_dict_data` (`dict_id`, `value`, `label`, `sort`, `config`, `disabled`, `remark`, `created_by`, `created_at`, `updated_by`, `updated_at`, `deleted`)
VALUES ((SELECT MAX(`id`) FROM system_dict), 'IMAGE', '图片', 1, '', 0, '', 1, CURRENT_TIMESTAMP, NULL, NULL, 0);

COMMIT;
